package com.jiyun.mapper;

import com.jiyun.entity.Goods;
import com.jiyun.entity.GoodsType;
import com.jiyun.entity.GoodsVo;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface GoodsMapper extends Mapper<Goods> {

    //关联查询查询所有信息
    List<GoodsVo> findAll();

    //查询所有类型
    @Select("select * from goods_type")
    List<GoodsType> findGoodsType();
}

